package com.fitness.club.model;

//数据库配置类
public class DatabaseConfig {

	// 数据库类型
	private String type;

	// 数据库驱动
	private String driverClassName;

	// 数据库连接地址
	private String url;

	// 数据库用户名
	private String userName;

	// 数据库密码
	private String password;

	// 数据库名称
	private String dbName;

	// 数据库类包
	private String basePackage;

	// 文件保存路径
	private String savePath;

	// 要生成的表名称
	private String[] tableNames;

	// 过滤的字段表名的前缀
	private String[] fieldPrefix;

	private String exclusionTables;

	public DatabaseConfig(String type) {
		super();
		this.type = type;
	}

	public DatabaseConfig(String type, String driverClassName, String url, String userName, String password,
			String dbName, String basePackage) {
		super();
		this.type = type;
		this.driverClassName = driverClassName;
		this.url = url;
		this.userName = userName;
		this.password = password;
		this.dbName = dbName;
		this.basePackage = basePackage;
	}

	public DatabaseConfig(String type, String driverClassName, String url, String userName, String password,
			String dbName, String basePackage, String[] tableNames, String exclusionTables) {
		super();
		this.type = type;
		this.driverClassName = driverClassName;
		this.url = url;
		this.userName = userName;
		this.password = password;
		this.dbName = dbName;
		this.basePackage = basePackage;
		this.tableNames = tableNames;
		this.exclusionTables = exclusionTables;
	}

	public DatabaseConfig(String driverClassName, String url, String userName, String password) {
		super();
		this.driverClassName = driverClassName;
		this.url = url;
		this.userName = userName;
		this.password = password;
	}

	public DatabaseConfig(String type, String driverClassName, String url, String userName, String password,
			String dbName, String basePackage, String[] tableNames, String[] fieldPrefix, String exclusionTables) {
		super();
		this.type = type;
		this.driverClassName = driverClassName;
		this.url = url;
		this.userName = userName;
		this.password = password;
		this.dbName = dbName;
		this.basePackage = basePackage;
		this.tableNames = tableNames;
		this.fieldPrefix = fieldPrefix;
		this.exclusionTables = exclusionTables;
	}

	public DatabaseConfig(String type, String driverClassName, String url, String userName, String password,
			String dbName, String basePackage, String savePath, String[] tableNames, String[] fieldPrefix,
			String exclusionTables) {
		super();
		this.type = type;
		this.driverClassName = driverClassName;
		this.url = url;
		this.userName = userName;
		this.password = password;
		this.dbName = dbName;
		this.basePackage = basePackage;
		this.savePath = savePath;
		this.tableNames = tableNames;
		this.fieldPrefix = fieldPrefix;
		this.exclusionTables = exclusionTables;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDriverClassName() {
		return driverClassName;
	}

	public void setDriverClassName(String driverClassName) {
		this.driverClassName = driverClassName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getBasePackage() {
		return basePackage;
	}

	public void setBasePackage(String basePackage) {
		this.basePackage = basePackage;
	}

	public String[] getTableNames() {
		return tableNames;
	}

	public void setTableNames(String[] tableNames) {
		this.tableNames = tableNames;
	}

	public String[] getFieldPrefix() {
		return fieldPrefix;
	}

	public void setFieldPrefix(String[] fieldPrefix) {
		this.fieldPrefix = fieldPrefix;
	}

	public String getSavePath() {
		return savePath;
	}

	public void setSavePath(String savePath) {
		this.savePath = savePath;
	}

	public String getExclusionTables() {
		return exclusionTables;
	}

	public void setExclusionTables(String exclusionTables) {
		this.exclusionTables = exclusionTables;
	}

}
